package com.dalin.platform.loa.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                                                                                                *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2011-03-10 09:51:15                                            *
 * @modDate: 2011-03-10 09:51:15                                            *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LoaOperateCondition extends Condition{
    private Long parentOperateId; // PARENT_OPERATE_ID,16,0,null
    private Long menuId; // MENU_ID,16,0,null
    private String requestParam; // REQUEST_PARAM,1024,0,null
    private String methodName; // METHOD_NAME,256,0,null
    private String operateDescription; // OPERATE_DESCRIPTION,1024,0,null
    private String operateTip; // OPERATE_TIP,256,0,操作提示
    private Integer operateCode; // OPERATE_CODE,8,0,操作代码
    private String operateName; // OPERATE_NAME,256,0,操作名称
    private Long resourceId; // RESOURCE_ID,16,0,资源主键

    public LoaOperateCondition prepareParams() {
        setBaseQueryStr("from LoaOperateEntity h");
        setParam("h.parentOperateId", "=", parentOperateId);
        setParam("h.menuId", "=", menuId);
        setParam("h.requestParam", "like", "%" + requestParam + "%");
        setParam("h.methodName", "like", "%" + methodName + "%");
        setParam("h.operateDescription", "like", "%" + operateDescription + "%");
        setParam("h.operateTip", "like", "%" + operateTip + "%");
        setParam("h.operateName", "like", "%" + operateName + "%");
        setParam("h.resourceId", "=", resourceId);
        setOrderBy("h.operateId desc");
        return this;
    }

    
    
    
    
    
	public Long getParentOperateId() {
		return parentOperateId;
	}

	public void setParentOperateId(Long parentOperateId) {
		this.parentOperateId = parentOperateId;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public String getRequestParam() {
		return requestParam;
	}

	public void setRequestParam(String requestParam) {
		this.requestParam = requestParam;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getOperateDescription() {
		return operateDescription;
	}

	public void setOperateDescription(String operateDescription) {
		this.operateDescription = operateDescription;
	}

	public String getOperateTip() {
		return operateTip;
	}

	public void setOperateTip(String operateTip) {
		this.operateTip = operateTip;
	}

	public Integer getOperateCode() {
		return operateCode;
	}

	public void setOperateCode(Integer operateCode) {
		this.operateCode = operateCode;
	}

	public String getOperateName() {
		return operateName;
	}

	public void setOperateName(String operateName) {
		this.operateName = operateName;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}
}
